TsgDXFLine
Unit: DXFConv
Description
This class defines a single line segment (entity LINE). Line is specified by two points, the Point and the Point1. When the style of a line is not solid (Lines.IsSolid = False) use DottedSingPts to obtain a pointer to a TFPoint type specific coordinate of a dotted line segment.
Syntax
TsgDXFLine = class(TsgDXFPenLine)
Properties
Properties | Description |
---|---|
Angle | The property represents angle between the line and X axis. |
DottedSingPts | The property contains coordinates of the line as list of the pointers to the TFPoint type. |
Length | The property represents length of the line. |
Point1 | The property contains coordinates of the second point. |
Derived from TsgDXFPenLine | Description |
---|---|
Extrusion | The property indicates direction to local axis z. |
LineType | The property returns line type the TsgDXFLineType entity. |
Point | The poroperty contains coordinates for the base point. |
ZThick | The property contains offset by Z axis (Thickness in AutoCAD terms). |
Derived from TsgDXFPenEntity | Description |
---|---|
Pen | The property for reaching the TPen object, used for drawing. |
Derived from TsgDXFEntity | Description |
---|---|
Box | The property determines the 3d box embraced the entity. |
Color | The property gets or sets entity color. |
ColorCAD | The property gets or sets a color for drawing entities. |
Complex | The property determines whether a entity is populated with child entities. |
Converter | The property returns the TsgDXFConverter class object. |
Count | The property indicates the total number of child entities. |
Entities | The property lists all child entities. |
EntType | The property indicates type of an entity. |
Handle | The property is used for finding entity links. |
Layer | The property points to layer, containing given primitive if this layer is given. |
LineType | The property sets and gets line type for an entity. |
LineTypeScale | The property sets and gets the Linetype scale. |
LineWeight | The property sets or gets line weight in millimeters. |
PaperSpace | The property indicates Model Space and Paper Space entity segregation. |
SrcEnd | The property indicates end position of the entity description in the source CAD file. |
SrcStart | The property indicates start position of the entity description in the source CAD file. |
Visibility | The property sets and gets entities visibility. |
Visible | The property determines whether the component appears onscreen. |
Methods
Methods | Description |
---|---|
AssignEntity | The method copies properties of source entity to current entity. |
Create | Creates an instance of the TsgDXFLine object. |
Destroy | Frees up all internal objects before destroying this object. |
GetBoxPoints | See TsgDXFEntity.GetBoxPoints method. |
Derived from TsgDXFPenLine | Description |
---|---|
GetThickness | The method returns entity's thickness. |
SetLWeight | The method call SetLWeight to change line weight of the entity. |
Derived from TsgDXFPenEntity | Description |
---|---|
SetColor | The method changes the color used for drawing. |
Derived from TsgDXFEntity | Description |
---|---|
AddEntity | The method adds a new child entity. |
Clone | The method copies properties of source entity to current entity (include Handle ). |
Draw | The method generates the OnDraw event. |
EntName | The method returns an entity name. |
SetLType | The method sets line type of the entity. |
Events
Derived from TsgDXFEntity | Description |
---|---|
OnDraw | The event occurs when the Draw method is called. |